from tinyshop_ui.common.add import common_add
from tinyshop_ui.common.findmodule import common_module
from tinyshop_ui.common.input import common_input
from tinyshop_ui.common.login import common_login
from tinyshop_ui.common.select import common_select
from tinyshop_ui.common.td import common_td


class Orders:
    def AddrM(self,param1,param2,param,expect):
        webd = common_login().webd
        common_module(webd,param1,param2)
        common_add(webd)
        common_input(webd).text(webd,param)
        common_select().addr_select(webd)
        common_input(webd).checkbox()
        common_input(webd).submit()
        exp = common_td().res(webd,expect)
        webd.close()
        return exp